// math_num1.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include "math_num1.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


mathOper::mathOper()
{
	m_strOper = "1";
	m_strGapLeft = "";
	m_StrGapRight = "";
	SetOperAtribute();
}

mathOper::~mathOper()
{

}

void mathOper::SetOperAtribute()
{
	m_Attribute.unit = UNITARY;
	m_Attribute.priority = LEVEL_THIRD;
	m_Attribute.type = OPERAND;
}

void mathOper::Release()
{
	delete this;
}

void mathOper::Evaluate( double *dbDatas,int nCount )
{

}

BOOL  __stdcall CreatePlugObj(void** pPlugObj)
{
	*pPlugObj= new mathOper; 
	return *pPlugObj != NULL;
}

void ReleasePlugObj(mathOper* pPlugObj)
{
	delete pPlugObj;
	pPlugObj = NULL;
}